from django.db import models
# 导入时间域
from django.utils import timezone
# Create your models here.

# 用户表
class User(models.Model):
    username = models.CharField(max_length=20,null=True)
    password = models.CharField(max_length=100,null=True)
    create_time = models.DateTimeField(default=timezone.now,null=True)
    
    class Meta:
        db_table = 'db_user'